function foo(requiredParam, optParam?) {}